[IA64] Fix PAL_HALT of dom0 for panic_notifier_list
authorAlex Williamson <alex.williamson@hp.com>
Tue, 31 Jul 2007 16:30:40 +0000 (10:30 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Tue, 31 Jul 2007 16:30:40 +0000 (10:30 -0600)
Currently dom0 cannot call panic_notifier_list in panic().
This is caused by PAL_HALT called from smp_send_stop().
When dom0 calls PAL_HALT, Hypervisor reset system.
So if dom0 panic, we cannot use panic_notifier_list.
Current PAL_HALT of xen is different from ia64 specification.
This patch fixes this issue.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
xen/arch/ia64/xen/fw_emul.c

index 4b250017507c42aeac77e9a873dad74e2d8fff39..13bdb71c3f5b63cb4a13cce9b9480ceb78d9758a 100644 (file)
@@ -819,15 +819,9 @@ xen_pal_emulator(unsigned long index, u64 in1, u64 in2, u64 in3)
                }
                break;
            case PAL_HALT:
-               if (current->domain == dom0) {
-                       printk ("Domain0 halts the machine\n");
-                       console_start_sync();
-                       (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL);
-               } else {
-                       set_bit(_VPF_down, &current->pause_flags);
-                       vcpu_sleep_nosync(current);
-                       status = PAL_STATUS_SUCCESS;
-               }
+               set_bit(_VPF_down, &current->pause_flags);
+               vcpu_sleep_nosync(current);
+               status = PAL_STATUS_SUCCESS;
                break;
            case PAL_HALT_LIGHT:
                if (VMX_DOMAIN(current)) {